from constant import *

data =  {
    #僵尸1号
    "zombie1": {
        'die':{
            'imagePath': PROJECT_DIR + '/image/zombie/zombie1/die/zombie1_die_{}.png',
            'size': (100, 100),
        },
        'eat':{
            'imagePath': PROJECT_DIR + '/image/zombie/zombie1/eat/zombie1_eat_{}.png',
            'size': (100, 100),
        },
        'injured':{
            'imagePath': PROJECT_DIR + '/image/zombie/zombie1/injured/zombie1_injured_{}.png',
            'size': (100, 100),
        },
        'move':{
            'imagePath': PROJECT_DIR + '/image/zombie/zombie1/move/zombie1_move_{}.png',
            'size': (130, 130),
        },
        'pos': [1400,50],
        'speed': (-0.5,0),
        'gap': 0.1,
        'life': 10,
    },
    #豌豆子弹
    "peaBullet": {
        'imagePath': PROJECT_DIR+'/image/plants/peaBullet/peaBullet.png',
        'size': (40, 20),
        'speed': (2,0),
        'atk': 5
    },
    #豌豆射手
    "pea": {
        'gap': 0.2,
        'summonTime': 5,
        'work':{
            'imagePath': PROJECT_DIR+'/image/plants/pea/work/pea_work_{}.png',
            'size': (300, 100),
        },
        'grow':{
            'imagePath': PROJECT_DIR+'/image/plants/pea/grow/pea_grow_{}.png',
            'size': (70, 70),
        }
    },
    # 阳光
    "sun": {
        'imagePath': PROJECT_DIR + '/image/plants/sun/sun_{}.png',
        'size': (50, 50),
        'speed': (0,1),
        'gap': 0.15,
        'liveTime': 5,
    },
    # 向日葵
    "sunFlower": {
        'imagePath': PROJECT_DIR + '/image/plants/sunFlower/sunFlower_{}.png',
        'size': (80, 80),
        'gap': 0.2,
        'summonTime': 10
    },
    # 卡片
    "card": {
        'size': (55, 75),
        'pos': (170, 2),
        'info': [{'path':PROJECT_DIR + '/image/plants/card/pea.png','id':'pea'},
                {'path':PROJECT_DIR + '/image/plants/card/sunFlower.png','id':'sunFlower'},
                 {'path':PROJECT_DIR + '/image/plants/card/zombie1.png','id':'zombie1'}]
    }
}